﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Implements;
using Cofe.Core.Interfaces;

namespace Cofe.Core
{
    public static class IVolumeExtension
    {
        public static IVolumeInfo ToVolumeInfo(this IVolume volume)
        {
            return new VolumeInfo()
            {
                FactoryId = volume.FactoryId,
                VolumeId = volume.VolumeId,
                ParamString = volume.ParamString
            };
        }
    }
}
